<template>
  <div>
    <!-- checkbox的v-model
             数组：[选中项的值(没有告诉时默认为null)],
             非数组：最终会转换成boolean值
             v-model
             label:选中项的值

    -->
    <h3>{{ checked }}</h3>
    <el-checkbox v-model="checked" label="sz">深圳</el-checkbox>
    <el-checkbox v-model="checked" label="gz">广州</el-checkbox>
  </div>
</template>
<script>
export default {
  data() {
    return {
      checked: []
    }
  }
}
</script>
<style>
</style>
